/**
 * @(#) Metadata.java
 */
package org.genew.squadra.xml.model.content.metadati;




public class Metadata
{
//	private int id;
	
	private Format format;
	
	private Source source;
	
	private Language language;
	
	private Type type;
	
	private Data date;
	
	private Identifier identifier;
	
	private Creator creator;
	
	private Subject subject;
	
	private Contributor contributor;
	
	private Relation relation;
	
	private Publisher publisher;
	
	private Rights rights;
	
	private Coverage coverage;
	
	private Description description;
	
	private Title title;
        
        public Metadata(){
        
        }
        public Metadata(Title title,Language language, Identifier identifier){
        	this.title = title;
        	this.identifier = identifier;
        	this.language = language;
        }
        public Metadata(Format format, Source source, 
            Language language, Type type, Data date, 
            Identifier identifier, Creator creator, 
            Subject subject, Contributor contrinutor, 
            Relation relation, Publisher publisher, 
            Rights rights, Coverage coverage, 
            Description description, Title title) {
		        this.format = format;
		        this.source = source;
		        this.language = language;
		        this.type = type;
		        this.date = date;
		        this.identifier = identifier;
		        this.creator = creator;
		        this.subject = subject;
		        this.contributor = contrinutor;
		        this.relation = relation;
		        this.publisher = publisher;
		        this.rights = rights;
		        this.coverage = coverage;
		        this.description = description;
		        this.title = title;
    }
        
     
	public void setFormat( Format format )
	{
		this.format=format;
	}
	
	public Format getFormat( )
	{
		return format;
	}
	
	public void setSource( Source source )
	{
		this.source=source;
	}
	
	public Source getSource( )
	{
		return source;
	}
	
	public void setLanguage( Language language )
	{
		this.language=language;
	}
	
	public Language getLanguage( )
	{
		return language;
	}
	
	public void setType( Type type )
	{
		this.type=type;
	}
	
	public Type getType( )
	{
		return type;
	}
	
	public void setDate( Data date )
	{
		this.date=date;
	}
	
	public Data getDate( )
	{
		return date;
	}
	
	public void setIdentifier( Identifier identifier )
	{
		this.identifier=identifier;
	}
	
	public Identifier getIdentifier( )
	{
		return identifier;
	}
	
	public void setCreator( Creator creator )
	{
		this.creator=creator;
	}
	
	public Creator getCreator( )
	{
		return creator;
	}
	
	public void setSubject( Subject subject )
	{
		this.subject=subject;
	}
	
	public Subject getSubject( )
	{
		return subject;
	}
	
	public void setContributor( Contributor contrinutor )
	{
		this.contributor=contrinutor;
	}
	
	public Contributor getContributor( )
	{
		return contributor;
	}
	
	public void setRelation( Relation relation )
	{
		this.relation=relation;
	}
	
	public Relation getRelation( )
	{
		return relation;
	}
	
	public void setPublisher( Publisher publisher )
	{
		this.publisher=publisher;
	}
	
	public Publisher getPublisher( )
	{
		return publisher;
	}
	
	public void setRights( Rights rights )
	{
		this.rights=rights;
	}
	
	public Rights getRights( )
	{
		return rights;
	}
	
	public void setCoverage( Coverage coverage )
	{
		this.coverage=coverage;
	}
	
	public Coverage getCoverage( )
	{
		return coverage;
	}
	
	public void setDescription( Description description )
	{
		this.description=description;
	}
	
	public Description getDescription( )
	{
		return description;
	}
	
	public void setTitle( Title title )
	{
		this.title=title;
	}
	
	public Title getTitle( )
	{
		return title;
	}
	
        public void printMtd(){
        
            System.out.println(this.getContributor().getValue());
            System.out.println(this.getCoverage().getValue());
            System.out.println(this.getCreator().getValue());
            System.out.println(this.getDate().getValue());
            System.out.println(this.getDescription().getValue());
            System.out.println(this.getFormat().getValue());
            System.out.println(this.getIdentifier().getValue());
            System.out.println(this.getLanguage().getValue());
            System.out.println(this.getPublisher().getValue());
            System.out.println(this.getRelation().getValue());
            System.out.println(this.getRights().getValue());
            System.out.println(this.getSource().getValue());
            System.out.println(this.getSubject().getValue());
            System.out.println(this.getTitle().getValue());
            System.out.println(this.getType().getValue());
            
            
        }

//		public int getId() {
//			return id;
//		}
//
//		public void setId(int id) {
//			this.id = id;
//		}
	
}
